package chat.whiteboard.components;

import java.awt.event.ActionListener;

import javax.swing.JButton;

import chat.whiteboard.WhiteBoardController;


public class ArrowButton extends JButton implements ICommand {
	private WhiteBoardController controller = null;

	public ArrowButton(ActionListener act,WhiteBoardController controller){
		this.controller = controller;
		addActionListener(act);
		controller.registerArrowButton(this);
	}
	@Override
	public void execute() {
		System.out.println("Arrow Button");
		controller.startArrowState();
	}

}
